package cn.iocoder.yudao.module.trade.enums.delivery;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 店铺类型
 */
@Getter
@AllArgsConstructor
public enum StoreTypeEnum implements IntArrayValuable {

    FLAGSHIP(1, "旗舰店"),
    BOUTIQUE(2, "精品店"),
    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(StoreTypeEnum::getType).toArray();

    /**
     * 店铺类型
     */
    private final Integer type;
    /**
     * 类型名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
